//
//  LGMedicineBallScreenHeader.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/8/22.
//

#import "LGMedicineBallScreenHeader.h"

@interface LGMedicineBallScreenHeader()

/**   */
@property (nonatomic , strong)UILabel *titleLabel;

@end

@implementation LGMedicineBallScreenHeader

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:self.titleLabel];
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

-(void)setTitle:(NSString *)title{
    _title = title;
    self.titleLabel.text = title;
}

-(UILabel *)titleLabel{
    if(!_titleLabel){
        _titleLabel = [UILabel lableWithText:@"" colorString:@"#333333" textFont:LGFontWeight(16, UIFontWeightMedium) textAlignment:NSTextAlignmentLeft lines:1];
        _titleLabel.frame = CGRectMake(viewPix(5), viewPix(10), Screen_W-viewPix(50), viewPix(22));
    }
    return _titleLabel;
}

@end
